package chixing.day07.homwork;

public class MyEmployeeTest {
    public static void main(String[] args) {
        MyEmployee m1 = new FullTimeEmployee(1,"aaa",10000f,500f);
        MyEmployee m2 = new PartTimeEmployee(2,"bbb",50000f,10,100);
        MyEmployee m3 = new SalesEmployee(3,"ccc",80000,4000,0.5);

        MyEmployee[] myEmployees = {m1,m2,m3};
        for (MyEmployee employee : myEmployees) {
            System.out.println("员工编号:" +employee.getEmpNo()+", 员工姓名:"+employee.getEmpName() +", 员工薪资"+ employee.calculateSalary());
        }
    }
}
